/**
 * Created by lee on 2017/7/3.
 */
/*定义更新学生方法*/
function updateStudent() {
    $.ajax({
        type: "POST",
        dataType: "json",
        url: "rest/student/update", //更新路径
        data: {
            studentId: $("#stuId").val(),
            studentName: $("#stuName").val(),
            studentAge: $("#stuAge").val(),
            studentCity: $("#stuCity").val(),
        },
        success: function() {
            window.location.href = "rest/student/listStudent"; //跳转到列表页面
        }
    });
}